Integrand size = 25, antiderivative size = 204 \[ \int \frac {(a+b \tan (e+f x))^3}{(d \sec (e+f x))^{5/2}} \, dx=\frac {6 a \left (a^2+2 b^2\right ) E\left (\left .\frac {1}{2} \arctan (\tan (e+f x))\right |2\right ) \sqrt [4]{\sec ^2(e+f x)}}{5 d^2 f \sqrt {d \sec (e+f x)}}-\frac {6 a \left (a^2+2 b^2\right ) \tan (e+f x)}{5 d^2 f \sqrt {d \sec (e+f x)}}-\frac {2 \cos ^2(e+f x) (b-a \tan (e+f x)) (a+b \tan (e+f x))^2}{5 d^2 f \sqrt {d \sec (e+f x)}}-\frac {2 \left (2 b \left (a^2+2 b^2\right )-a \left (3 a^2+5 b^2\right ) \tan (e+f x)\right )}{5 d^2 f \sqrt {d \sec (e+f x)}} \]
[Out]
Time = 0.18 (sec) , antiderivative size = 204, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3593, 753, 792, 233, 202} \[ \int \frac {(a+b \tan (e+f x))^3}{(d \sec (e+f x))^{5/2}} \, dx=\frac {6 a \left (a^2+2 b^2\right ) \sqrt [4]{\sec ^2(e+f x)} E\left (\left .\frac {1}{2} \arctan (\tan (e+f x))\right |2\right )}{5 d^2 f \sqrt {d \sec (e+f x)}}-\frac {6 a \left (a^2+2 b^2\right ) \tan (e+f x)}{5 d^2 f \sqrt {d \sec (e+f x)}}-\frac {2 \left (2 b \left (a^2+2 b^2\right )-a \left (3 a^2+5 b^2\right ) \tan (e+f x)\right )}{5 d^2 f \sqrt {d \sec (e+f x)}}-\frac {2 \cos ^2(e+f x) (b-a \tan (e+f x)) (a+b \tan (e+f x))^2}{5 d^2 f \sqrt {d \sec (e+f x)}} \]
[In]
[Out]
Rule 202
Rule 233
Rule 753
Rule 792
Rule 3593
Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt [4]{\sec ^2(e+f x)} \text {Subst}\left (\int \frac {(a+x)^3}{\left (1+\frac {x^2}{b^2}\right )^{9/4}} \, dx,x,b \tan (e+f x)\right )}{b d^2 f \sqrt {d \sec (e+f x)}} \\ & = -\frac {2 \cos ^2(e+f x) (b-a \tan (e+f x)) (a+b \tan (e+f x))^2}{5 d^2 f \sqrt {d \sec (e+f x)}}+\frac {\left (2 b \sqrt [4]{\sec ^2(e+f x)}\right ) \text {Subst}\left (\int \frac {(a+x) \left (\frac {1}{2} \left (4+\frac {3 a^2}{b^2}\right )-\frac {a x}{2 b^2}\right )}{\left (1+\frac {x^2}{b^2}\right )^{5/4}} \, dx,x,b \tan (e+f x)\right )}{5 d^2 f \sqrt {d \sec (e+f x)}} \\ & = -\frac {2 \cos ^2(e+f x) (b-a \tan (e+f x)) (a+b \tan (e+f x))^2}{5 d^2 f \sqrt {d \sec (e+f x)}}-\frac {2 \left (2 b \left (a^2+2 b^2\right )-a \left (3 a^2+5 b^2\right ) \tan (e+f x)\right )}{5 d^2 f \sqrt {d \sec (e+f x)}}-\frac {\left (3 a \left (2+\frac {a^2}{b^2}\right ) b \sqrt [4]{\sec ^2(e+f x)}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [4]{1+\frac {x^2}{b^2}}} \, dx,x,b \tan (e+f x)\right )}{5 d^2 f \sqrt {d \sec (e+f x)}} \\ & = -\frac {6 a \left (a^2+2 b^2\right ) \tan (e+f x)}{5 d^2 f \sqrt {d \sec (e+f x)}}-\frac {2 \cos ^2(e+f x) (b-a \tan (e+f x)) (a+b \tan (e+f x))^2}{5 d^2 f \sqrt {d \sec (e+f x)}}-\frac {2 \left (2 b \left (a^2+2 b^2\right )-a \left (3 a^2+5 b^2\right ) \tan (e+f x)\right )}{5 d^2 f \sqrt {d \sec (e+f x)}}+\frac {\left (3 a \left (2+\frac {a^2}{b^2}\right ) b \sqrt [4]{\sec ^2(e+f x)}\right ) \text {Subst}\left (\int \frac {1}{\left (1+\frac {x^2}{b^2}\right )^{5/4}} \, dx,x,b \tan (e+f x)\right )}{5 d^2 f \sqrt {d \sec (e+f x)}} \\ & = \frac {6 a \left (a^2+2 b^2\right ) E\left (\left .\frac {1}{2} \arctan (\tan (e+f x))\right |2\right ) \sqrt [4]{\sec ^2(e+f x)}}{5 d^2 f \sqrt {d \sec (e+f x)}}-\frac {6 a \left (a^2+2 b^2\right ) \tan (e+f x)}{5 d^2 f \sqrt {d \sec (e+f x)}}-\frac {2 \cos ^2(e+f x) (b-a \tan (e+f x)) (a+b \tan (e+f x))^2}{5 d^2 f \sqrt {d \sec (e+f x)}}-\frac {2 \left (2 b \left (a^2+2 b^2\right )-a \left (3 a^2+5 b^2\right ) \tan (e+f x)\right )}{5 d^2 f \sqrt {d \sec (e+f x)}} \\ \end{align*}
Time = 3.94 (sec) , antiderivative size = 150, normalized size of antiderivative = 0.74 \[ \int \frac {(a+b \tan (e+f x))^3}{(d \sec (e+f x))^{5/2}} \, dx=\frac {\sqrt {d \sec (e+f x)} \left (-b \left (9 a^2+17 b^2\right ) \cos (e+f x)-3 a^2 b \cos (3 (e+f x))+b^3 \cos (3 (e+f x))+12 a \left (a^2+2 b^2\right ) \sqrt {\cos (e+f x)} E\left (\left .\frac {1}{2} (e+f x)\right |2\right )+a^3 \sin (e+f x)-3 a b^2 \sin (e+f x)+a^3 \sin (3 (e+f x))-3 a b^2 \sin (3 (e+f x))\right )}{10 d^3 f} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 26.00 (sec) , antiderivative size = 1289, normalized size of antiderivative = 6.32
method | result | size |
parts | \(\text {Expression too large to display}\) | \(1289\) |
default | \(\text {Expression too large to display}\) | \(1602\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.10 (sec) , antiderivative size = 164, normalized size of antiderivative = 0.80 \[ \int \frac {(a+b \tan (e+f x))^3}{(d \sec (e+f x))^{5/2}} \, dx=-\frac {3 \, \sqrt {2} {\left (-i \, a^{3} - 2 i \, a b^{2}\right )} \sqrt {d} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (f x + e\right ) + i \, \sin \left (f x + e\right )\right )\right ) + 3 \, \sqrt {2} {\left (i \, a^{3} + 2 i \, a b^{2}\right )} \sqrt {d} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (f x + e\right ) - i \, \sin \left (f x + e\right )\right )\right ) + 2 \, {\left (5 \, b^{3} \cos \left (f x + e\right ) + {\left (3 \, a^{2} b - b^{3}\right )} \cos \left (f x + e\right )^{3} - {\left (a^{3} - 3 \, a b^{2}\right )} \cos \left (f x + e\right )^{2} \sin \left (f x + e\right )\right )} \sqrt {\frac {d}{\cos \left (f x + e\right )}}}{5 \, d^{3} f} \]
[In]
[Out]
\[ \int \frac {(a+b \tan (e+f x))^3}{(d \sec (e+f x))^{5/2}} \, dx=\int \frac {\left (a + b \tan {\left (e + f x \right )}\right )^{3}}{\left (d \sec {\left (e + f x \right )}\right )^{\frac {5}{2}}}\, dx \]
[In]
[Out]
\[ \int \frac {(a+b \tan (e+f x))^3}{(d \sec (e+f x))^{5/2}} \, dx=\int { \frac {{\left (b \tan \left (f x + e\right ) + a\right )}^{3}}{\left (d \sec \left (f x + e\right )\right )^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {(a+b \tan (e+f x))^3}{(d \sec (e+f x))^{5/2}} \, dx=\int { \frac {{\left (b \tan \left (f x + e\right ) + a\right )}^{3}}{\left (d \sec \left (f x + e\right )\right )^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(a+b \tan (e+f x))^3}{(d \sec (e+f x))^{5/2}} \, dx=\int \frac {{\left (a+b\,\mathrm {tan}\left (e+f\,x\right )\right )}^3}{{\left (\frac {d}{\cos \left (e+f\,x\right )}\right )}^{5/2}} \,d x \]
[In]
[Out]